Optimal. Leaf size=101 \[ \frac {b \cos (e+f x) \sin (e+f x)}{a (a+b) f \sqrt {a+b \sin ^2(e+f x)}}+\frac {E\left (e+f x\left |-\frac {b}{a}\right .\right ) \sqrt {a+b \sin ^2(e+f x)}}{a (a+b) f \sqrt {1+\frac {b \sin ^2(e+f x)}{a}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 101, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3263, 21, 3257,
3256} \begin {gather*} \frac {b \sin (e+f x) \cos (e+f x)}{a f (a+b) \sqrt {a+b \sin ^2(e+f x)}}+\frac {\sqrt {a+b \sin ^2(e+f x)} E\left (e+f x\left |-\frac {b}{a}\right .\right )}{a f (a+b) \sqrt {\frac {b \sin ^2(e+f x)}{a}+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 3256
Rule 3257
Rule 3263
Rubi steps
\begin {align*} \int \frac {1}{\left (a+b \sin ^2(e+f x)\right )^{3/2}} \, dx &=\frac {b \cos (e+f x) \sin (e+f x)}{a (a+b) f \sqrt {a+b \sin ^2(e+f x)}}-\frac {\int \frac {-a-b \sin ^2(e+f x)}{\sqrt {a+b \sin ^2(e+f x)}} \, dx}{a (a+b)}\\ &=\frac {b \cos (e+f x) \sin (e+f x)}{a (a+b) f \sqrt {a+b \sin ^2(e+f x)}}+\frac {\int \sqrt {a+b \sin ^2(e+f x)} \, dx}{a (a+b)}\\ &=\frac {b \cos (e+f x) \sin (e+f x)}{a (a+b) f \sqrt {a+b \sin ^2(e+f x)}}+\frac {\sqrt {a+b \sin ^2(e+f x)} \int \sqrt {1+\frac {b \sin ^2(e+f x)}{a}} \, dx}{a (a+b) \sqrt {1+\frac {b \sin ^2(e+f x)}{a}}}\\ &=\frac {b \cos (e+f x) \sin (e+f x)}{a (a+b) f \sqrt {a+b \sin ^2(e+f x)}}+\frac {E\left (e+f x\left |-\frac {b}{a}\right .\right ) \sqrt {a+b \sin ^2(e+f x)}}{a (a+b) f \sqrt {1+\frac {b \sin ^2(e+f x)}{a}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 90, normalized size = 0.89 \begin {gather*} \frac {2 a \sqrt {\frac {2 a+b-b \cos (2 (e+f x))}{a}} E\left (e+f x\left |-\frac {b}{a}\right .\right )+\sqrt {2} b \sin (2 (e+f x))}{2 a (a+b) f \sqrt {2 a+b-b \cos (2 (e+f x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 8.12, size = 103, normalized size = 1.02
method | result | size |
default | \(\frac {a \sqrt {\frac {\cos \left (2 f x +2 e \right )}{2}+\frac {1}{2}}\, \sqrt {-\frac {b \left (\cos ^{2}\left (f x +e \right )\right )}{a}+\frac {a +b}{a}}\, \EllipticE \left (\sin \left (f x +e \right ), \sqrt {-\frac {b}{a}}\right )+\sin \left (f x +e \right ) \left (\cos ^{2}\left (f x +e \right )\right ) b}{a \left (a +b \right ) \cos \left (f x +e \right ) \sqrt {a +b \left (\sin ^{2}\left (f x +e \right )\right )}\, f}\) | \(103\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains complex when optimal does not.
time = 0.17, size = 938, normalized size = 9.29 \begin {gather*} -\frac {2 \, \sqrt {-b \cos \left (f x + e\right )^{2} + a + b} b^{3} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - {\left (2 \, {\left (i \, b^{3} \cos \left (f x + e\right )^{2} - i \, a b^{2} - i \, b^{3}\right )} \sqrt {-b} \sqrt {\frac {a^{2} + a b}{b^{2}}} - {\left (2 i \, a^{2} b + 3 i \, a b^{2} + i \, b^{3} + {\left (-2 i \, a b^{2} - i \, b^{3}\right )} \cos \left (f x + e\right )^{2}\right )} \sqrt {-b}\right )} \sqrt {\frac {2 \, b \sqrt {\frac {a^{2} + a b}{b^{2}}} + 2 \, a + b}{b}} E(\arcsin \left (\sqrt {\frac {2 \, b \sqrt {\frac {a^{2} + a b}{b^{2}}} + 2 \, a + b}{b}} {\left (\cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right )}\right )\,|\,\frac {8 \, a^{2} + 8 \, a b + b^{2} - 4 \, {\left (2 \, a b + b^{2}\right )} \sqrt {\frac {a^{2} + a b}{b^{2}}}}{b^{2}}) - {\left (2 \, {\left (-i \, b^{3} \cos \left (f x + e\right )^{2} + i \, a b^{2} + i \, b^{3}\right )} \sqrt {-b} \sqrt {\frac {a^{2} + a b}{b^{2}}} - {\left (-2 i \, a^{2} b - 3 i \, a b^{2} - i \, b^{3} + {\left (2 i \, a b^{2} + i \, b^{3}\right )} \cos \left (f x + e\right )^{2}\right )} \sqrt {-b}\right )} \sqrt {\frac {2 \, b \sqrt {\frac {a^{2} + a b}{b^{2}}} + 2 \, a + b}{b}} E(\arcsin \left (\sqrt {\frac {2 \, b \sqrt {\frac {a^{2} + a b}{b^{2}}} + 2 \, a + b}{b}} {\left (\cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right )}\right )\,|\,\frac {8 \, a^{2} + 8 \, a b + b^{2} - 4 \, {\left (2 \, a b + b^{2}\right )} \sqrt {\frac {a^{2} + a b}{b^{2}}}}{b^{2}}) + 2 \, {\left (2 \, {\left (-i \, a^{2} b - 2 i \, a b^{2} - i \, b^{3} + {\left (i \, a b^{2} + i \, b^{3}\right )} \cos \left (f x + e\right )^{2}\right )} \sqrt {-b} \sqrt {\frac {a^{2} + a b}{b^{2}}} + {\left (2 i \, a^{3} + 3 i \, a^{2} b + i \, a b^{2} + {\left (-2 i \, a^{2} b - i \, a b^{2}\right )} \cos \left (f x + e\right )^{2}\right )} \sqrt {-b}\right )} \sqrt {\frac {2 \, b \sqrt {\frac {a^{2} + a b}{b^{2}}} + 2 \, a + b}{b}} F(\arcsin \left (\sqrt {\frac {2 \, b \sqrt {\frac {a^{2} + a b}{b^{2}}} + 2 \, a + b}{b}} {\left (\cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right )}\right )\,|\,\frac {8 \, a^{2} + 8 \, a b + b^{2} - 4 \, {\left (2 \, a b + b^{2}\right )} \sqrt {\frac {a^{2} + a b}{b^{2}}}}{b^{2}}) + 2 \, {\left (2 \, {\left (i \, a^{2} b + 2 i \, a b^{2} + i \, b^{3} + {\left (-i \, a b^{2} - i \, b^{3}\right )} \cos \left (f x + e\right )^{2}\right )} \sqrt {-b} \sqrt {\frac {a^{2} + a b}{b^{2}}} + {\left (-2 i \, a^{3} - 3 i \, a^{2} b - i \, a b^{2} + {\left (2 i \, a^{2} b + i \, a b^{2}\right )} \cos \left (f x + e\right )^{2}\right )} \sqrt {-b}\right )} \sqrt {\frac {2 \, b \sqrt {\frac {a^{2} + a b}{b^{2}}} + 2 \, a + b}{b}} F(\arcsin \left (\sqrt {\frac {2 \, b \sqrt {\frac {a^{2} + a b}{b^{2}}} + 2 \, a + b}{b}} {\left (\cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right )}\right )\,|\,\frac {8 \, a^{2} + 8 \, a b + b^{2} - 4 \, {\left (2 \, a b + b^{2}\right )} \sqrt {\frac {a^{2} + a b}{b^{2}}}}{b^{2}})}{2 \, {\left ({\left (a^{2} b^{3} + a b^{4}\right )} f \cos \left (f x + e\right )^{2} - {\left (a^{3} b^{2} + 2 \, a^{2} b^{3} + a b^{4}\right )} f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (a + b \sin ^{2}{\left (e + f x \right )}\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\left (b\,{\sin \left (e+f\,x\right )}^2+a\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________